package com.authenticateCenter.domain.vo;

import java.util.List;

import com.common.sensitive.DesensitizationStrategy;
import com.common.sensitive.Sensitive;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * @author 大忽悠
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@Slf4j
public class UserVo {

    private Integer id;

    private String username;

    //@Sensitive(strategy = DesensitizationStrategy.PASSWORD)
    private String password;

    private Integer enabled;

    private Integer accountNonExpired;

    private Integer accountNonLocked;

    private Integer credentialsNonExpired;

    private List<RoleVo> roles;
}
